package com.gxa.insurance.pojo;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import java.io.Serializable;
import java.util.Date;

/**
 * @ClassName Card
 * @Description 车主卡实体类
 * @Author ds
 * @Date 2022/6/6 18:19
 * @Version 1.0
 */
@ApiModel
@Data
@AllArgsConstructor
@NoArgsConstructor
@Component
public class Card implements Serializable {

    @ApiModelProperty(hidden = true)
    private Integer id;
    @ApiModelProperty(name = "name",value = "用户名",required = true)
    private String name;
    @ApiModelProperty(name = "phone",value = "手机号",required = true)
    private String phone;
    @ApiModelProperty(name = "carId",value = "车牌号",required = true)
    private String carId;
    @ApiModelProperty(name = "customer",value = "持卡人",required = true)
    private String customer;
    @ApiModelProperty(name = "cusName",value = "行驶证车主姓名")
    private String cusName;
    @ApiModelProperty(name = "code",value = "车辆识别代码")
    private String code;
    @ApiModelProperty(name = "engine",value = "车辆发动机号")
    private String engine;
    @ApiModelProperty(name = "compulsoryEndTime",value = "交强险到期日")
    @JsonFormat(pattern = "YYYY-MM-dd",timezone ="GMT+8")
    private Date compulsoryEndTime;
    @ApiModelProperty(name = "idCard",value = "车主身份证号")
    private String idCard;
    @ApiModelProperty(name = "brand",value = "品牌型号")
    private String brand;
    @ApiModelProperty(name = "commercialEndTime",value = "商业险到期日")
    @JsonFormat(pattern = "YYYY-MM-dd",timezone ="GMT+8")
    private Date commercialEndTime;
    @ApiModelProperty(name = "beginTime",value = "车辆初登日期")
    @JsonFormat(pattern = "YYYY-MM-dd",timezone ="GMT+8")
    private Date beginTime;
    @ApiModelProperty(name = "attachment",value = "行驶证附件")
    private String attachment;
    @ApiModelProperty(name = "regTime",value = "登记日期",hidden = true)
    @JsonFormat(pattern = "YYYY-MM-dd",timezone ="GMT+8")
    private Date regTime;

    @ApiModelProperty(hidden = true)
    private Integer count;

    @ApiModelProperty(hidden = true)
    private Integer offset;

    @ApiModelProperty(hidden = true)
    private Integer limit;


}
